package com.shhm.common.entity;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JackZ
 * @version 1.0
 * @description: TODO
 * @date 2025/9/10 下午12:11
 */
@Data
public class BaseEntity implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    public void createLocalDateTime(){
        LocalDateTime now = LocalDateTime.now();
        this.createTime = now;
        this.updateTime = now;
    }

}
